package com.spzx.channel.controller;

import com.spzx.channel.service.BrandService;
import com.spzx.common.core.web.domain.AjaxResult;
import com.spzx.product.api.domain.Brand;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Tag(name = "H5项目品牌管理")
@RestController
@RequestMapping("/brand")
public class BrandController {

    @Autowired
    private BrandService brandService;

    @Operation(summary = "获取所有品牌")
    @GetMapping("/getBrandAll")
    public AjaxResult getbrandAll(){
        List<Brand> brandList= brandService.getbrandAll();
        return AjaxResult.success(brandList);
    }
}
